iwc.jscore.Dialog = {
	ajaxOpen : function(json){
		div=document.getElementById(json.id);
		isnew=false;
		html="";
		if(div==null) {
			div=document.createElement('div');
			div.id=json.id;
			html=ajax_content(json.url,json.method,json.param);
			div.class='x-hidden';
			//div.innerHTML=html;
			document.body.appendChild(div);
			isnew=true;
		}
		Ext.onReady(function(){
			if(isnew) {
		     	win = new Ext.Window({
	                el:json.id,
	                layout:'fit',
	                wait:true,
	                title : json.title,
	                width:json.width,
	                height:json.height,
	                closeAction:'hide',
	                plain: true
	            });
	        	win.show(this);
	        } else {
	        	win.show(div);
	        }
		});
		
	}
}
